﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="CustomerRegistration.aspx.cs" Inherits="CustomerRegistration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h3 style="text-align:center">Customer Registration</h3><br />

<table style="width:100%">
<tr>
    <td style="width:47%" class="style1">First Name</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"><asp:TextBox ID="txtFirstName" runat="server" 
            Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="fvFirstName" runat="server" 
            ControlToValidate="txtFirstName" ErrorMessage="Required" ForeColor="Red"> </asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td style="width:47%" class="style1">Last Name</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"><asp:TextBox ID="txtLastName" runat="server" 
            Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="fvLastName" runat="server" 
            ControlToValidate="txtLastName" ErrorMessage="Required" ForeColor="Red"> </asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td style="width:47%" class="style1">Sex</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"><asp:DropDownList ID="ddlSex" runat="server" 
            Width="176px"></asp:DropDownList></td>
</tr>
<tr>
    <td style="width:47%" class="style1">Address</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"><asp:TextBox ID="txtAddress" 
            TextMode="MultiLine" runat="server" Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="fvAddress" runat="server" 
            ControlToValidate="txtAddress" ErrorMessage="Required" ForeColor="Red"> </asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td style="width:47%" class="style1">EmailID</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"><asp:TextBox ID="txtEmailID" runat="server" 
            Width="176px"></asp:TextBox>
        <asp:RegularExpressionValidator ID="regexEmailID" runat="server" 
            ControlToValidate="txtEmailID" ErrorMessage="Invalid format" ForeColor="Red" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
    </td>
</tr>
<tr>
    <td style="width:47%" class="style1">Contact Number</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"><asp:TextBox ID="txtContactNumber" 
            runat="server" Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="fvContactNumber" runat="server" 
            ControlToValidate="txtContactNumber" ErrorMessage="Required" ForeColor="Red"> </asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td><br /></td>
    <td><br /></td>
</tr>
<tr>
    <td style="width:47%" class="style1">User Name</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"><asp:TextBox ID="txtUserName" runat="server" 
            Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="fvUserName" runat="server" 
            ControlToValidate="txtUserName" ErrorMessage="Required" ForeColor="Red"> </asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td style="width:47%" class="style1">Password</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"> <asp:TextBox ID="txtPassword" 
            TextMode="Password" runat="server" Width="176px" ></asp:TextBox></td>
</tr>
<tr>
    <td style="width:47%" class="style1">Confirm Password</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left"> <asp:TextBox ID="txtConfirmPassword" 
            TextMode="Password" runat="server" Width="176px" ></asp:TextBox>
        <asp:CompareValidator ID="cmpPassword" runat="server" 
            ControlToCompare="txtPassword" ControlToValidate="txtConfirmPassword" 
            ErrorMessage="Passwords don't match" ForeColor="Red"> </asp:CompareValidator>
    </td>
</tr>
<tr>
    <td style="width:47%" class="style1">Secret Question</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left">
        <asp:TextBox ID="txtSecretQuestion" runat="server" 
            Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="fvSecretQuestion" runat="server" 
            ControlToValidate="txtSecretQuestion" ErrorMessage="Required" ForeColor="Red"> </asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td style="width:47%" class="style1">Answer</td>
    <td style="width:3%"></td>
    <td style="width:50%" align="left">
        <asp:TextBox ID="txtSecretAnswer" runat="server" 
            Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="fvSecretAnswer" runat="server" 
            ControlToValidate="txtSecretAnswer" ErrorMessage="Required" ForeColor="Red"> </asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td><br /></td>
    <td><br /></td>
</tr>
<tr>
    <%--<td style="width:47%" align="right">
    </td>
    <td style="width:3%">
    <asp:Button ID="btnCustomerRegister" Text="Register" runat="server" 
            onclick="btnCustomerRegister_Click" /></td>
    <td style="width:50%">
    </td>--%>
</tr>
</table>


<table style="width:100%">
<tr>
    <td align="right" style="width:50%">
        <asp:Button ID="btnHome" Text="Home" runat="server" onclick="btnHome_Click" 
            CausesValidation="False" />
    </td>
    <td style="width:50%">
            
    <asp:Button ID="btnCustomerRegister" Text="Register" runat="server" 
    onclick="btnCustomerRegister_Click" /></td>
</tr>
</table>

</asp:Content>

